libxc: Return negative value and propagate errno for xc_offline_page API
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Mar 2015 00:24:11 +0000 (20:24 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 20 Mar 2015 16:04:35 +0000 (16:04 +0000)
commit34059d8e3d85a4a7d2313102152b4d31df3cb950
tree1760a3ad7248703011fa2769bbb0c612cb5f9ac3
parent479dab849873830184e3b53a903a3d3246b48e1a
libxc: Return negative value and propagate errno for xc_offline_page API

Instead of returning -Exx we now return -1 for error.
We could stash the -Exx values in errno values but why - the
underlaying functions we call all stash the proper errno
value. Hence we just propagate it up wherver it is needed.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_offline_page.c
tools/libxc/xc_private.c
tools/misc/xen-hptool.c